package models

// 优惠码使用日志
type MaCouponLog struct {
	ID        string `gorm:"primaryKey;column:id;autoIncrement;type:bigint unsigned;not null;comment:唯一ID" json:"id" json_old:"ID"`
	BatchID   int64  `gorm:"column:batch_id;type:bigint;not null;comment:优惠码活动ID" json:"batch_id"`
	Code      string `gorm:"column:code;type:varchar(10);not null;comment:优惠码" json:"code"`
	CreatedAt int64  `gorm:"column:created_at;autoCreateTime;type:int;size:64;comment:创建时间" json:"created_at"`
	UpdatedAt int64  `gorm:"column:updated_at;autoUpdateTime;type:int;size:64;comment:修改时间" json:"updated_at"`
	DeletedAt int64  `gorm:"column:deleted_at;type:int;size:64;default:0;comment:删除时间" json:"deleted_at"`
}

func (m MaCouponLog) TableName() string {
	return "ma_coupon_log"
}
